package com.zh.domain.dto.project;

import com.zh.common.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "PageProjectRequest", description = "分页项目请求")
public class PageProjectRequest extends PageRequest {
    @ApiModelProperty("项目id")
    private Integer id;
    @ApiModelProperty("项目编号")
    private String code;
    @ApiModelProperty("项目名称")
    private String title;
    @ApiModelProperty("项目负责人id")
    private Integer ownerId;
    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("团队id")
    private Integer teamId;
    @ApiModelProperty("项目开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty("项目结束时间")
    private LocalDateTime endTime;
    @ApiModelProperty("项目进度最小值")
    private BigDecimal leftProgress;
    @ApiModelProperty("项目进度最大值")
    private BigDecimal rightProgress;
    @ApiModelProperty("是否允许延期0否1是")
    private Integer canDelay;
    @ApiModelProperty("状态(0规划中1进行中2暂停中3已逾期4已完成)")
    private Integer status;
}
